package io.github.wanggit.antrpc.console.web.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class CallLogPage implements Serializable {
    private static final long serialVersionUID = 2858717698257705683L;

    private static final int MAX_PAGE = 20;

    private long page;

    private long totalPage;

    private List<CallLogsVO> callLogsVOS = new ArrayList<>();

    public void setTotalPage(long totalPage) {
        this.totalPage = totalPage > MAX_PAGE ? MAX_PAGE : totalPage;
    }
}
